package com.hxf.dto;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.PolymorphismType;

/**
 * 餐厅包厢
 * @author tengyicheng
 *
 */
@Entity
@Table(name = "rk_meal_box")
@org.hibernate.annotations.Entity(selectBeforeUpdate = true, dynamicInsert = true, dynamicUpdate = true, polymorphism = PolymorphismType.EXPLICIT)
public class MealBoxDto extends BaseDto{
	private Integer id;
	private String name;
	private String images;
	private Integer type;
	private Integer peopleNumber;
	private Double lowConsume; 
	private String remark;
	private Integer status;
	private Integer restaurantId;  
	private String createUser;
	private String createTime; 
	private String updateTime;
	private String updateUser;
	private Integer auditStatus;
	
	/**
	 * 包厢
	 */
	public static final int MEAL_BOX_TYPE_0 = 0;
	/**
	 * 大厅
	 */
	public static final int MEAL_BOX_TYPE_1 = 1;
	
	
	/**
	 * 审核中
	 */
	public static final int MEAL_BOX_AUDIT_STATUA_0 = 0;
	/**
	 * 审核通过
	 */
	public static final int MEAL_BOX_AUDIT_STATUA_1 = 1;
	 /**
	  * 审核不通过
	  */
	public static final int MEAL_BOX_AUDIT_STATUA_2 = 2;
	
	/**
	 * 空闲
	 */
	public static final int MEAL_BOX_STATUA_3 = 0;
	/**
	 * 已预订
	 */
	public static final int MEAL_BOX_STATUA_4 = 1;
	 /**
	  * 作废
	  */
	public static final int MEAL_BOX_STATUA_5 = 2;
	 /**
	  * 其他（装修）
	  */
	public static final int MEAL_BOX_STATUA_6 = 3;
	
	public MealBoxDto() {
		
	}
	
	public MealBoxDto(String name, String images, Integer type, Integer peopleNumber, double lowConsume, String remark, Integer status, Integer restaurantId) {
		this.name = name;
		this.images = images;
		this.type = type;
		this.peopleNumber = peopleNumber;
		this.lowConsume = lowConsume;
		this.remark = remark;
		this.status = status;
		this.restaurantId = restaurantId;
	}
	
	public MealBoxDto(String name, String images, Integer type, Integer peopleNumber, double lowConsume, String remark, Integer status, Integer restaurantId, String createUser, String createTime, String updateUser, String updateTime) {
		this.name = name;
		this.images = images;
		this.type = type;
		this.peopleNumber = peopleNumber;
		this.lowConsume = lowConsume;
		this.remark = remark;
		this.restaurantId = restaurantId;
		this.createUser = createUser;
		this.createTime = createTime;
		this.updateUser = updateUser;
		this.updateTime = updateTime;
	}
	
	
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	@Column(name = "name")
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	@Column(name = "images")
	public String getImages() {
		return images;
	}
	public void setImages(String images) {
		this.images = images;
	}
	
	@Column(name = "type")
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	
	@Column(name = "people_number")
	public Integer getPeopleNumber() {
		return peopleNumber;
	}
	public void setPeopleNumber(Integer peopleNumber) {
		this.peopleNumber = peopleNumber;
	}
	
	@Column(name = "low_consume")
	public Double getLowConsume() {
		return lowConsume;
	}
	public void setLowConsume(Double lowConsume) {
		this.lowConsume = lowConsume;
	}
	
	@Column(name = "remark")
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@Column(name="create_time")
	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	@Column(name="create_user")
	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	@Column(name="update_time")
	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name="update_user")
	public String getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}
	
	@Column(name="status")
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name="restaurant_id")
	public Integer getRestaurantId() {
		return restaurantId;
	}

	public void setRestaurantId(Integer restaurantId) {
		this.restaurantId = restaurantId;
	}
	
	@Column(name="audit_status")
	public Integer getAuditStatus() {
		return auditStatus;
	}

	public void setAuditStatus(Integer auditStatus) {
		this.auditStatus = auditStatus;
	}

	@Override
	public String toString() {
		return "MealBoxDto [id=" + id + ", name=" + name + ", images=" + images
				+ ", type=" + type + ", peopleNumber=" + peopleNumber
				+ ", lowConsume=" + lowConsume + ", remark=" + remark
				+ ", status=" + status + ", restaurantId=" + restaurantId
				+ ", createUser=" + createUser + ", createTime=" + createTime
				+ ", updateTime=" + updateTime + ", updateUser=" + updateUser
				+ ", auditStatus=" + auditStatus + "]";
	}
	
}
